\(\int (a+b \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx\) [200]

   Optimal result
   Rubi [A] (verified)
   Mathematica [B] (warning: unable to verify)
   Maple [B] (verified)
   Fricas [F]
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 25, antiderivative size = 380 \[ \int (a+b \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx=-\frac {2 (a-b) \sqrt {a+b} (3 b c+4 a d) \cot (e+f x) E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{3 b f}+\frac {2 \sqrt {a+b} \left (a b (6 c-4 d)-b^2 (3 c-d)+3 a^2 d\right ) \cot (e+f x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{3 b f}-\frac {2 a \sqrt {a+b} c \cot (e+f x) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{f}+\frac {2 b d \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{3 f} \]

[Out]

-2/3*(a-b)*(4*a*d+3*b*c)*cot(f*x+e)*EllipticE((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(a+b)^(1
/2)*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/b/f+2/3*(a*b*(6*c-4*d)-b^2*(3*c-d)+3*a^2*d)
*cot(f*x+e)*EllipticF((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/(a
+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/b/f-2*a*c*cot(f*x+e)*EllipticPi((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),
(a+b)/a,((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/f+2/3*
b*d*(a+b*sec(f*x+e))^(1/2)*tan(f*x+e)/f

Rubi [A] (verified)

Time = 0.71 (sec) , antiderivative size = 380, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {4003, 4143, 4006, 3869, 3917, 4089} \[ \int (a+b \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx=\frac {2 \sqrt {a+b} \left (3 a^2 d+a b (6 c-4 d)-b^2 (3 c-d)\right ) \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{3 b f}-\frac {2 (a-b) \sqrt {a+b} (4 a d+3 b c) \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{3 b f}-\frac {2 a c \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{f}+\frac {2 b d \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f} \]

[In]

Int[(a + b*Sec[e + f*x])^(3/2)*(c + d*Sec[e + f*x]),x]

[Out]

(-2*(a - b)*Sqrt[a + b]*(3*b*c + 4*a*d)*Cot[e + f*x]*EllipticE[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (
a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(3*b*f) + (2*Sqr
t[a + b]*(a*b*(6*c - 4*d) - b^2*(3*c - d) + 3*a^2*d)*Cot[e + f*x]*EllipticF[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sq
rt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(3*
b*f) - (2*a*Sqrt[a + b]*c*Cot[e + f*x]*EllipticPi[(a + b)/a, ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a
+ b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/f + (2*b*d*Sqrt[a
+ b*Sec[e + f*x]]*Tan[e + f*x])/(3*f)

Rule 3869

Int[1/Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[2*(Rt[a + b, 2]/(a*d*Cot[c + d*x]))*Sqrt[b
*((1 - Csc[c + d*x])/(a + b))]*Sqrt[(-b)*((1 + Csc[c + d*x])/(a - b))]*EllipticPi[(a + b)/a, ArcSin[Sqrt[a + b
*Csc[c + d*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0]

Rule 3917

Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[-2*(Rt[a + b, 2]/(b*
f*Cot[e + f*x]))*Sqrt[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[(-b)*((1 + Csc[e + f*x])/(a - b))]*EllipticF[ArcSin
[Sqrt[a + b*Csc[e + f*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, e, f}, x] && NeQ[a^2 - b^2, 0]

Rule 4003

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_)), x_Symbol] :> Simp[(-b)
*d*Cot[e + f*x]*((a + b*Csc[e + f*x])^(m - 1)/(f*m)), x] + Dist[1/m, Int[(a + b*Csc[e + f*x])^(m - 2)*Simp[a^2
*c*m + (b^2*d*(m - 1) + 2*a*b*c*m + a^2*d*m)*Csc[e + f*x] + b*(b*c*m + a*d*(2*m - 1))*Csc[e + f*x]^2, x], x],
x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && GtQ[m, 1] && NeQ[a^2 - b^2, 0] && IntegerQ[2*m]

Rule 4006

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[c, In
t[1/Sqrt[a + b*Csc[e + f*x]], x], x] + Dist[d, Int[Csc[e + f*x]/Sqrt[a + b*Csc[e + f*x]], x], x] /; FreeQ[{a,
b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]

Rule 4089

Int[(csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)
], x_Symbol] :> Simp[-2*(A*b - a*B)*Rt[a + b*(B/A), 2]*Sqrt[b*((1 - Csc[e + f*x])/(a + b))]*(Sqrt[(-b)*((1 + C
sc[e + f*x])/(a - b))]/(b^2*f*Cot[e + f*x]))*EllipticE[ArcSin[Sqrt[a + b*Csc[e + f*x]]/Rt[a + b*(B/A), 2]], (a
*A + b*B)/(a*A - b*B)], x] /; FreeQ[{a, b, e, f, A, B}, x] && NeQ[a^2 - b^2, 0] && EqQ[A^2 - B^2, 0]

Rule 4143

Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_
.) + (a_)], x_Symbol] :> Int[(A + (B - C)*Csc[e + f*x])/Sqrt[a + b*Csc[e + f*x]], x] + Dist[C, Int[Csc[e + f*x
]*((1 + Csc[e + f*x])/Sqrt[a + b*Csc[e + f*x]]), x], x] /; FreeQ[{a, b, e, f, A, B, C}, x] && NeQ[a^2 - b^2, 0
]

Rubi steps \begin{align*} \text {integral}& = \frac {2 b d \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{3 f}+\frac {2}{3} \int \frac {\frac {3 a^2 c}{2}+\frac {1}{2} \left (6 a b c+3 a^2 d+b^2 d\right ) \sec (e+f x)+\frac {1}{2} b (3 b c+4 a d) \sec ^2(e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx \\ & = \frac {2 b d \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{3 f}+\frac {2}{3} \int \frac {\frac {3 a^2 c}{2}+\left (-\frac {1}{2} b (3 b c+4 a d)+\frac {1}{2} \left (6 a b c+3 a^2 d+b^2 d\right )\right ) \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx+\frac {1}{3} (b (3 b c+4 a d)) \int \frac {\sec (e+f x) (1+\sec (e+f x))}{\sqrt {a+b \sec (e+f x)}} \, dx \\ & = -\frac {2 (a-b) \sqrt {a+b} (3 b c+4 a d) \cot (e+f x) E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{3 b f}+\frac {2 b d \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{3 f}+\left (a^2 c\right ) \int \frac {1}{\sqrt {a+b \sec (e+f x)}} \, dx+\frac {1}{3} \left (a b (6 c-4 d)-b^2 (3 c-d)+3 a^2 d\right ) \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx \\ & = -\frac {2 (a-b) \sqrt {a+b} (3 b c+4 a d) \cot (e+f x) E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{3 b f}+\frac {2 \sqrt {a+b} \left (a b (6 c-4 d)-b^2 (3 c-d)+3 a^2 d\right ) \cot (e+f x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{3 b f}-\frac {2 a \sqrt {a+b} c \cot (e+f x) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{f}+\frac {2 b d \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{3 f} \\ \end{align*}

Mathematica [B] (warning: unable to verify)

Leaf count is larger than twice the leaf count of optimal. \(6063\) vs. \(2(380)=760\).

Time = 23.57 (sec) , antiderivative size = 6063, normalized size of antiderivative = 15.96 \[ \int (a+b \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx=\text {Result too large to show} \]

[In]

Integrate[(a + b*Sec[e + f*x])^(3/2)*(c + d*Sec[e + f*x]),x]

[Out]

Result too large to show

Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(2983\) vs. \(2(345)=690\).

Time = 24.79 (sec) , antiderivative size = 2984, normalized size of antiderivative = 7.85

method result size
parts \(\text {Expression too large to display}\) \(2984\)
default \(\text {Expression too large to display}\) \(2988\)

[In]

int((a+b*sec(f*x+e))^(3/2)*(c+d*sec(f*x+e)),x,method=_RETURNVERBOSE)

[Out]

2*c/f*(EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(c
os(f*x+e)/(cos(f*x+e)+1))^(1/2)*a^2*cos(f*x+e)^2-2*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+
b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*a*b*cos(f*x+e)^2-EllipticF(cot(f*x
+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1)
)^(1/2)*b^2*cos(f*x+e)^2+(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*Ell
ipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a*b*cos(f*x+e)^2+(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(
1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*b^2*cos(f*x+e)^2-2
*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticPi(cot(f*x+e)-csc(f
*x+e),-1,((a-b)/(a+b))^(1/2))*a^2*cos(f*x+e)^2+2*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)
*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*a^2*cos(f*x+e)-4*EllipticF(cot(f*x+e
)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^
(1/2)*a*b*cos(f*x+e)-2*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x
+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*b^2*cos(f*x+e)+2*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/
2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a*b*cos(f*x+e)+2*(1/
(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e)
,((a-b)/(a+b))^(1/2))*b^2*cos(f*x+e)-4*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)
+1))^(1/2)*EllipticPi(cot(f*x+e)-csc(f*x+e),-1,((a-b)/(a+b))^(1/2))*a^2*cos(f*x+e)+(1/(a+b)*(b+a*cos(f*x+e))/(
cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*a^
2-2*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(
f*x+e)/(cos(f*x+e)+1))^(1/2)*a*b-(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+
e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*b^2+(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*
EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*a*b+(1/(a+b)*(b+a*cos(f
*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^
(1/2)*b^2-2*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticPi(cot(f*x+e)-csc(f*x+e),-1,((a-b)/(a+b))^
(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*a^2+sin(f*x+e)*cos(f*x+e)*a*b+sin(f*x+e)*b^2)*(a+b*sec(f*x+e))^(1/2)/
(b+a*cos(f*x+e))/(cos(f*x+e)+1)-2/3*d/f*(a+b*sec(f*x+e))^(1/2)/(b+a*cos(f*x+e))/(cos(f*x+e)+1)*(3*EllipticF(co
t(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+
e)+1))^(1/2)*a^2*cos(f*x+e)^2+4*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))
/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*a*b*cos(f*x+e)^2+EllipticF(cot(f*x+e)-csc(f*x+e),((a-
b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*b^2*cos(f*x
+e)^2-4*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*c
os(f*x+e))/(cos(f*x+e)+1))^(1/2)*a^2*cos(f*x+e)^2-4*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e
)/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a*b*cos(f*x+e)^2+6*EllipticF(cot(
f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)
+1))^(1/2)*a^2*cos(f*x+e)+8*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(co
s(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*a*b*cos(f*x+e)+2*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(
a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*b^2*cos(f*x+e)-
8*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x
+e))/(cos(f*x+e)+1))^(1/2)*a^2*cos(f*x+e)-8*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*(cos(f*x+e)/(cos(f
*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a*b*cos(f*x+e)+3*(1/(a+b)*(b+a*cos(f*x+e)
)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)
*a^2+4*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(c
os(f*x+e)/(cos(f*x+e)+1))^(1/2)*a*b+(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f
*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*b^2-4*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*(1/(a+b)*
(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*a^2-4*(1/(a+b)*(b+
a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x+
e)+1))^(1/2)*a*b-4*a^2*cos(f*x+e)*sin(f*x+e)-sin(f*x+e)*cos(f*x+e)*a*b-5*a*b*sin(f*x+e)-sin(f*x+e)*b^2-b^2*tan
(f*x+e))

Fricas [F]

\[ \int (a+b \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx=\int { {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {3}{2}} {\left (d \sec \left (f x + e\right ) + c\right )} \,d x } \]

[In]

integrate((a+b*sec(f*x+e))^(3/2)*(c+d*sec(f*x+e)),x, algorithm="fricas")

[Out]

integral((b*d*sec(f*x + e)^2 + a*c + (b*c + a*d)*sec(f*x + e))*sqrt(b*sec(f*x + e) + a), x)

Sympy [F]

\[ \int (a+b \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx=\int \left (a + b \sec {\left (e + f x \right )}\right )^{\frac {3}{2}} \left (c + d \sec {\left (e + f x \right )}\right )\, dx \]

[In]

integrate((a+b*sec(f*x+e))**(3/2)*(c+d*sec(f*x+e)),x)

[Out]

Integral((a + b*sec(e + f*x))**(3/2)*(c + d*sec(e + f*x)), x)

Maxima [F]

\[ \int (a+b \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx=\int { {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {3}{2}} {\left (d \sec \left (f x + e\right ) + c\right )} \,d x } \]

[In]

integrate((a+b*sec(f*x+e))^(3/2)*(c+d*sec(f*x+e)),x, algorithm="maxima")

[Out]

integrate((b*sec(f*x + e) + a)^(3/2)*(d*sec(f*x + e) + c), x)

Giac [F]

\[ \int (a+b \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx=\int { {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {3}{2}} {\left (d \sec \left (f x + e\right ) + c\right )} \,d x } \]

[In]

integrate((a+b*sec(f*x+e))^(3/2)*(c+d*sec(f*x+e)),x, algorithm="giac")

[Out]

integrate((b*sec(f*x + e) + a)^(3/2)*(d*sec(f*x + e) + c), x)

Mupad [F(-1)]

Timed out. \[ \int (a+b \sec (e+f x))^{3/2} (c+d \sec (e+f x)) \, dx=\int {\left (a+\frac {b}{\cos \left (e+f\,x\right )}\right )}^{3/2}\,\left (c+\frac {d}{\cos \left (e+f\,x\right )}\right ) \,d x \]

[In]

int((a + b/cos(e + f*x))^(3/2)*(c + d/cos(e + f*x)),x)

[Out]

int((a + b/cos(e + f*x))^(3/2)*(c + d/cos(e + f*x)), x)